package com.module.ble.db.table

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName
import com.module.ble.data.bean.CusUnifyData

/**
 * 作者：sosou
 * <p>
 * 版本：1.0
 * <p>
 * 创建日期：2025/09/01
 * <p>
 * 描述：站立
 * <p>
 * 修订历史：
 */
@Entity(tableName = "user_stand", indices = [Index(value = ["createdTime"], unique = true)])
class UserStand : CusUnifyData {

    //创建时间   *
    @PrimaryKey
    @ColumnInfo
    override var createdTime: Long = 0L

    //创建时间(年月日)
    @ColumnInfo
    var inDateTime: Long = 0L

    @ColumnInfo
    var endTime: Long = 0L

    //mac   *
    @ColumnInfo
    var macAddress: String? = ""

    //站立  0坐1站
    @ColumnInfo
    var standType: Long = 0L

    override val mTime: Long
        get() = createdTime

    override val value: Number
        get() = standType

    //数据版本
    @ColumnInfo
    var dataVersion : Long = 0L

    //厂商   *
    @ColumnInfo
    var firmName: String? = ""

    //同步状态
    @ColumnInfo
    override var sysStat : Int = 0

    //时区   *
    @ColumnInfo
    var timeZone : String? = ""
}